﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;

namespace QD.Entity
{
    [JsonObject(MemberSerialization.OptIn)]
    public class TableSchema
    {
        [JsonProperty]
        public string Name { get; set; }
        [JsonProperty]
        public ColumnSchema[] Columns { get; set; }

        [JsonProperty]
        public ColumnSchema PrimaryKey { get; set; }
        [JsonProperty]
        public String Owner { get; set; }
        [JsonProperty]
        public String Description { get; set; }

        public override string ToString()
        {
            return Name;
        }
    }


}
